package com.hliushi.movie.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 收藏表
 */
@ApiModel(value = "MovieStar")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "movie_star")
public class MovieStar implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.ID_WORKER)
    @ApiModelProperty(value = "主键id")
    private Long id;
    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @ApiModelProperty(value = "用户id")
    private Long userId;
    /**
     * 电影id
     */
    @TableField(value = "movie_id")
    @ApiModelProperty(value = "电影id")
    private Long movieId;
    /**
     * 1收藏 2未收藏
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "1收藏 2未收藏")
    private Boolean status;
    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
}